﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace BasePlatformNet
{
	public class NetDeviceInfo
	{
		public int index = -1;				// 设备索引

		public string mac = "";				// MAC 地址

		public string name = "";			// 设备名称

		public bool activeStatus = false;	// 活跃状态

		// 无参构造函数
		public NetDeviceInfo()
		{ 
		}

		// 构造函数
		public NetDeviceInfo(NetDevice dev)
		{
			this.index = dev.index;

			this.mac = dev.mac;

			this.name = dev.name;

			this.activeStatus = dev.activeStatus;
		}

		public override string ToString()
		{
			return "index = " + index + ", mac = " + mac + ", name = " + name + ", activeStatus = " + activeStatus;
		}
	}
}
